<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>个人资料</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="../libs/mui/mui.css">
		<link rel="stylesheet" type="text/css" href="../css/main.css"/>
		<link rel="stylesheet" type="text/css" href="../libs/iconfont/fonts/iconfont.css">
		<link rel="stylesheet" type="text/css" href="../libs/map/mui.picker.css"/>
		<link rel="stylesheet" type="text/css" href="../libs/map/mui.poppicker.css"/>
		<style>
			.mui-content{font-size: 16px;}
			.frien_img img{width: 55px;height: 55px;border-radius: 100%;}
			.home_top{width: 20%;float: left;display: inline-block;}
			.frien_bq{line-height: 55px;width: 80%;float: left;display: inline-block;}
			.mui-table-view {padding: 5px 0;}	
			.mui-input-row label{width: 35%;}
			.mui-input-row label~input{width: 65%;}	
			/*.personal-data-body label{width: 30%;}
			.personal-data-body .mui-input-row label~select,
			.mui-input-row label~input {
				width: 70%;
			}
			.personal-data-body select {
			  color: #AAAAAA;
			}	*/
		</style>
	</head>
	<body ng-app="app" ng-controller="appcontroller">
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">个人资料</h1>
			<a class="mui-pull-right mui-icon" ng-click="preservation()"><h5>保存</h5></a>
		</header>
		<div class="mui-content">
			<div class="Person">
				<ul class="mui-table-view">
					<li class="mui-table-view-cell">
						<div class="frien_img">
							<div class="home_top">
								<img src="{{userpic}}{{m.member_avatar}}" class="mui-pull-left userpic"/>
								<!--加载背景-->
								<!--<img src="../doc/hy-person.png" class="mui-pull-left"/>-->
							</div>
							<div class="frien_bq">
								<span>头像</span>					
							</div>
						</div>							
					</li>				
				</ul>
				<ul class="mui-table-view">
					<li class="mui-input-row">
						<label>店铺名称：</label>
						<input type="text" class="store_name" placeholder="权志龙" value="{{m.store_name}}" />
					</li>
				</ul>
				<!--<ul class="personal-data-body mui-table-view">
		          <li class="mui-input-row">
		            <label for="j_gender">性 别：</label>
		            <select name="" id="j_gender">
		              <option value="0">请选择您的性别</option>
		              <option value="1">男</option>
		              <option value="2">女</option>
		            </select>
		          </li>  
		        </ul>-->
				<ul class="mui-table-view" id='showUserPicker'>
					<li class="mui-input-row" > 
						<label>性别：</label>
						<input id='userResult' type="text" class="member_sex" value="{{sex}}"/>
					</li>
				</ul>
				<ul class="mui-table-view">
					<li class="mui-input-row">
						<label>年龄：</label>
						<input type="text" class="member_ages" value="{{m.member_ages}}"/>
					</li>	
				</ul>
			</div>	
		</div>
	</body>
	<script type="text/javascript" src="../js/open.js"></script>
	<script type="text/javascript" src="../js/mui.min.js"></script>
	<script type="text/javascript" src="../libs/map/city.data-3.js"></script>
	<script type="text/javascript" src="../libs/map/city.data.js"></script>
	<script type="text/javascript" src="../libs/map/mui.picker.js"></script>
	<script type="text/javascript" src="../libs/map/mui.poppicker.js"></script>
	<script type="text/javascript" src="../libs/jquery/jquery.js"></script>
	<script type="text/javascript" src="../js/store_js/angular.js" ></script>
	<script type="text/javascript" src="../js/store_js/public.js" ></script>
	<script type="text/javascript" src="../js/store_js/personal_data.js" ></script>
	
	<script>
		(function($, doc) {
				$.init();
				$.ready(function() {
					//普通示例
					var userPicker = new $.PopPicker();
					userPicker.setData([{
						value: '1',
						text: '男'
					}, {
						value: '2',
						text: '女'
					}]);
					var showUserPickerButton = doc.getElementById('showUserPicker');
					var userResult = doc.getElementById('userResult');
					showUserPickerButton.addEventListener('tap', function(event) {
						userPicker.show(function(items) {
							userResult.value = items[0].text;
							//返回 false 可以阻止选择框的关闭
							//return false;
						});
					}, false);
					
				});
			})(mui, document);
	</script>
</html>